<div class="page">
<?php
if($html->getContent('type')=='inquiryhotel')
{
    @include('booking.tpl');
}
else if($html->getContent('type')=='hotel')
{
    echo $html->getTitle(null,$html->getField(0,'cMetaTitle'));
?>     
   <div class="col1" >
        <div class="titletour"><?php echo $html->getContent('cName')?></div>
         <?php
        if($promotion!=false)
        {
            $imgpro = GetIntroImg($promotion['cImage'],true,false);
        ?>
        <div class="promotion">
            <div class="tt"><?php echo $promotion['cTitle']?></div>
            <div class="msg">
                <?php if($imgpro!==false){?>
                    <div class="img"><img src="<?php echo $imgpro?>" width="170" /></div>
                <?}?>
                <?php echo $promotion['cIntro']?>
            </div>
            <div class="date"><?php echo __('Promotional price')?>:
                <span><?php echo $promotion['cPrice']?></span>
            </div>
            <div class="date"><?php echo __('Valid for hotel between')?>:
                <span>
                 <?php echo gpc_DisplayDate2($promotion['dStartDate'])?> -
                 <?php echo gpc_DisplayDate2($promotion['dEndDate'])?>
                 </span> 
            </div>  
            <a class="otherpro" href="<?php echo getUrlCatByType('promotions')?>"><?php echo __('Other promotions')?></a>          
        </div>
        <?
        }
        ?>
        <div><a class="sendinq" href="<?php echo $linksendinquiry?>"><?php echo __('Send Your Inquiry')?></a></div>
        <div id="tourtabs" style="padding-left: 15px;border:0px">
            <a><?php echo __("Summary")?></a>
            <a><?php echo __("Images")?></a>
            <?php
            if($html->checkContent('cRates')==true)
            {
                echo '<a>'. __("Rates").'</a>';
            }
            ?>
            <a><?php echo __("Review")?></a> 
        </div>
        <div class="bortop"></div>
        <div id="tourtabs_pages" class="hotelbox">            
            <div class="page" id="scrolldiv">          
                <div style="margin-left:20px;" id="hstext">       
                    <?php echo $html->getContent('cIntro')?>
                </div>
                <script type="text/javascript">(new TScroll).init({idt:'hstext',idr:'scrolldiv',w:569,h:380});</script>
            </div>
            
            <div class="page" align="center">
                <?php 
                $galleryshowed=true;
                $galleryaction = "tabshotel.view(2)";
                ?>
                <div id="PhotoShow" style="height:370px;width:545px;"></div>                              
            </div>  
             
            <?php
            if($html->checkContent('cRates')==true)
            {
            ?>
            <div class="page">
                <div style="margin-left:20px;margin-right:20px;"> 
                    <?php echo $html->getContent('cRates')?>
                </div>
            </div>  
            <?php
            }
            ?>                  
            <div class="page" id="scrolldiv2">          
                <div style="margin-left:20px;" id="hstext2">  
                    <?php include "templates/review/default.tpl"?>
                </div>
            </div>
            <script type="text/javascript">(new TScroll).init({idt:'hstext2',idr:'scrolldiv2',w:569,h:380});</script>
        </div>
        <div class="borbottom"></div>
        <script type="text/javascript">(tabshotel=new TrTabs).init('tourtabs')</script>          
        
        <div style="margin-left: 25px;">
            <?php @include "templates/box/gallery.tpl"?>
        </div>  
        <div class="clear" style="padding-top: 50px;"></div>
       
       <div class="boxvideo">
            <div class="tabs" id="videotab">
                <a><?php echo __("Other").' '.$html->getField(0,'cName')?></a>
            </div>
            <div class="pages" id="videotab_pages">
                <div class="page">
                 <?php 
                foreach($otherhotels as $i=>$otherhotel)
                {
                    $Link = getLinkHotel($otherhotel['iParentId'],$otherhotel['cUrlString']);
                ?>
                <a class="listtour" href="<?echo $Link?>" >
                    <span class="img">
                        <img width="155" src="<?php echo GetIntroImg($otherhotel['cImage'],true)?>" alt="<?php echo $otherhotel['cName']?>" />
                    </span>
                    <span class="tt"><?php echo $otherhotel['cName']?></span>
                    <span class="w"><?php echo $otherhotel['cHighLights']?></span>
                    <span class="l"></span>
                    <span class="f"><?php echo __("Find out more")?></span>
                </a>
                <?
                }
                ?>
                </div>                
                <div class="clear"></div> 
            </div>                       
       </div>
       <script type="text/javascript">(new TrTabs).init('videotab')</script>  
    </div>
    <div class="col2">
        <?php @include("templates/box/tablocation.tpl")?>
        <div class="clear"  style="padding-top: 20px;"></div>
        <?php include 'templates/box/tabpackages.tpl'?>                    
        <div class="dots"></div>
        <?php @include("templates/box/subscribe.tpl")?>
    </div>
    <div class="clear">&nbsp;</div>    
<?php
}else
{
?>
<?php
    if($html->countUrl==1)
    {
        echo $html->getTitle('cName');
    ?>
    <div class="stour">
        <div class="box">
            <div class="chois"><?php echo __('Choose your hotels/resorts by')?></div>
            <div class="loc"><?php echo __('showing us your destinations')?>:
                <span class="slbox">
                    <span class="bgsl" onclick="TrselBox.show('tsb1')"><?php echo __('choose a location')?>...</span>
                    <span class="tsb" id="tsb1" style="visibility: hidden;">
                        <div class="top"><span>Where do you want to visit?</span></div>
                        <div class="clear"></div>
                        <script type="text/javascript">
                        var lctcb=new Trcheckbox("tsb1");
                        <?php echo $listlocation?>
                        function submitclick()
                        {
                            var list=lctcb.get();
                            ajp.addPost("cid",list.id);
                            ajp.send("");
                            TrselBox.show("tsb1");
                            getId("currentloc").innerHTML=(list.name.length==0)? "<?php echo __('All').' '.$html->getContent('cName')?>":list.name;
                        }
                        </script>
                        <div class="buts clear">
                            <a onclick="TrselBox.show('tsb1')"><?php echo __('Cancel')?></a>
                            <a onclick="submitclick()"><?php echo __('Submit')?></a>
                        </div>
                    </span>
                </span>
            </div>
            <div class="typ"><?php echo __('and/or showing us your style')?>:
                <span class="slbox">
                    <span class="bgsl"  onclick="TrselBox.show('tsb2')"><?php echo __('choose your favorite style')?>...</span>
                    <span class="tsb" id="tsb2" style="visibility: hidden;">
                        <div class="top"><span>Find out more about other Traveller Types:</span></div>
                        <div class="clear"></div>
                        <script type="text/javascript">
                        var totcb=new Trcheckbox("tsb2");
                        <?php echo $listhoteltype?>
                        function submitclick2()
                        {
                            var list=totcb.get();
                            ajp.addPost("ctype",list.id);
                            ajp.send("");
                            TrselBox.show("tsb2");
                        }
                        </script>                            
                        <div class="buts clear">
                            <a onclick="TrselBox.show('tsb2')"><?php echo __('Cancel')?></a>
                            <a onclick="submitclick2()"><?php echo __('Submit')?></a>
                        </div>
                    </span>
                </span>
            </div>
        </div>
        <div class='curr'><span><?php echo __('Currently showing')?>: </span><span id="currentloc"><?php echo __('All').' '.$html->getContent('cName')?></span></div> 
    </div>
    <div id="ajaxpage">
        <?php echo showSplitPage()?>
        <?php echo $allHotel?>    
        <?php echo showSplitPage()?>
    </div>
    <div class="clear"></div>
    <?
    }else
    {
         echo $html->getTitle('cName');
    ?>
        <div class="Contentsub">
            <?php echo $html->getField(1,'cIntroHotel');?>
        </div>
        <div id="ajaxpage">
            <?php echo showSplitPage()?>
            <?php echo $allHotel?>    
            <?php echo showSplitPage()?>
        </div>
    <?php
    }
    ?>
<?php
}
?>

</div>